package com.example.dao;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.example.entity.Product;
import com.example.entity.User;

public interface ProductRepository extends JpaRepository<Product, Long> {

	Product findById(Long productId);
	
	@Query(value="select product_Name from Product",nativeQuery=true)//原生sql语句
	List<String> findAllProductName();
	

	
}
